package org.bluedream.core.module.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.bluedream.comm.base.TreeEntity;


@ToString(callSuper = true)
@NoArgsConstructor
//@EqualsAndHashCode(callSuper = false)
@TableName(value = "SYS_ORGANIZATION")
public class Organization extends TreeEntity<Organization> {
    private static final long serialVersionUID = -6114665771501285448L;

    @TableField(value = "code")
    @Setter
    @Getter
    @NonNull
    private String id;

    @TableField(value = "name")
    @Setter
    @Getter
    @NonNull
    private String treeName;

    @TableField(value = "code")
    @Setter
    @Getter
    @NonNull
    private String treeCode;

    @Setter
    @Getter
    private String fullName;

    public Organization(String id) {
        this.id = id;
    }
}
